const mysql = require("mysql")
const db = mysql.createPool({
    host:'127.0.0.1',
    user:'root',
    password:'root',
    database:'node_demo',
    timezone: "08:00",
    multipleStatements: true // 设置可以同时查询多条语句
})
// 向外共享 db 数据库连接对象
module.exports = db